//
//  UINoticeTextViewUtil.h
//  Wewe
//
//  Created by Jessiegan on 11-8-10.
//  Copyright 2011年 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "Operation.h"
#import "TipsUnity.h"


@interface UINoticeTextUtil : NSObject<OperationDelegate> {
    NSTimer *noticeTimer;
    
    UIView  *viewNotice;
    UIImageView  *imageTips;
    UILabel *noticeTextView;
    UIView *showBoardView;
    UIImageView  *imageBG;
    BOOL isShow;
//    CGFloat YOffset;
    //add by jessiegan 
    NSString *lastText;
    
    NSOperationQueue *noticeQueue;
    UIWindow * lastWindow;
    BOOL  lastWindowEnabled;
}

@property (nonatomic ,copy) NSString *lastText;


+(UINoticeTextUtil *)sharedInstance;
- (void)showWithText:(NSString *)text stay:(NSTimeInterval)secs; // 0 to stay forever
- (void)showWithText:(NSString *)text stay:(NSTimeInterval)secs offset:(CGFloat)offset; // 0 to stay forever
- (void)showWithText:(NSString *)text stay:(NSTimeInterval)secs offset:(CGFloat)offset TipsLevel:(ZDTipsLevel )tipsLevel; // 0 to stay forever

- (void)endShow;
@end
